﻿using System.Collections.Generic;
using ControleRepresentante.Logic.Models;
using WebSite.ViewModels.Fields;

namespace WebSite.ViewModels.ViewModelExtensions.DetailsViewModelExtensions
{
    public abstract class JolitexDetailsViewModel<TModel> : IDetailsViewModelExtension
        where TModel : ModelBase
    {
        public IEnumerable<IField> GetGeralAdditionalFields(object model)
        {
            return GetGeralAdditionalFields((TModel)model);
        }

        protected abstract IEnumerable<IField> GetGeralAdditionalFields(TModel model);
    }
}